<html>
	<head>
		<meta charset="utf-8">
        <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
        <title><?php if(!empty($item)){?>修改<?php }else{ ?>添加<?php } ?>图片分组</title>
        <meta name="keywords" content="<?php if(!empty($item)){?>修改<?php }else{ ?>添加<?php } ?>图片分组">
        <meta name="description" content="<?php if(!empty($item)){?>修改<?php }else{ ?>添加<?php } ?>图片分组">
        <meta name="_token" content="{{ csrf_token() }}"/>
        <link href="{{asset('static/css/bootstrap.min.css')}}" rel="stylesheet">
        <link href="{{asset('static/css/materialdesignicons.min.css')}}" rel="stylesheet">
        <link href="{{asset('static/css/style.min.css')}}" rel="stylesheet">
	</head>
	<body>
		<div class="container-fluid">
        	<div class="row">
          		<div class="col-lg-12 col-md-12">
          			<div class="card">
          				<div class="card-body">
          					<form action="{{url('image/add_group')}}" method="post">
          						<input type="hidden" id="id" name="id" value="<?php echo !empty($item) ? $item['id'] : '';?>"/>
                                <div class="form-group">
                                    <label for="example-text-input"><span style="color:red;">*</span>&nbsp;分组名称</label>
                                    <input class="form-control" type="text" name="group_name" placeholder="请输入分组名称" value="<?php echo !empty($item) ? $item['group_name'] : '';?>" maxlength="20">
                                </div>
                                <div class="form-group">
                                    <label for="example-text-input">排序</label>
                                    <input class="form-control" type="number" name="sortby" value="<?php echo !empty($item) ? $item['sortby'] : '';?>" maxlength="10">
                                </div>
                                <div class="form-group">
                                    <button class="btn btn-primary submitForm" type="button">保存</button>
                                    <button class="btn btn-secondary" type="button" onclick="closeWindow()">关闭</button>
                                </div>
                            </form>
          				</div>
          			</div>
          		</div>
          	</div>
		</div>	
	</body>
	<script type="text/javascript" src="{{asset('static/js/jquery.min.js')}}"></script>
	<script type="text/javascript" src="{{asset('static/js/layer/layer.js')}}"></script>
	<script type="text/javascript" src="{{asset('static/common/js/image.js')}}"></script>
	<script type="text/javascript">
        $.ajaxSetup({ headers: { 'X-CSRF-TOKEN': $('meta[name="_token"]').attr('content') }})
    </script>
</html>